
#include <stdio.h>
typedef unsigned int Type;
int main(void){

				Type data, *p;
				p=&data;
				*(Type *)p = 0x12;

				printf("%08x\n",data);
				if(0x12==data){

				printf("学号20155201的笔记本电脑是小端\n");
														}
				else if(0x00000012==data){

				printf("学号20155201的笔记本电脑是大端\n");
														}
				return 0;
}

							
